package com.wzh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author zh wang
 * @Create 2025/4/14 17:07
 */
@SpringBootApplication
// 启用代理暴露：UserService proxy = (UserService) AopContext.currentProxy();proxy.methodB();  // 通过代理调用，确保 AOP 生效
@EnableAspectJAutoProxy(exposeProxy = true)
// 开启异步注解
@EnableAsync
// 开启定时任务注解
@EnableScheduling
public class ExampleStartApp {
    public static void main(String[] args) {
        SpringApplication.run(ExampleStartApp.class, args);
    }
}
